package com.woniu.goodsservice.service;

import com.woniu.goodsservice.dto.GoodsResultDTO;
import com.woniu.goodsservice.entity.Goods;
import java.util.List;

public interface GoodsService {

    Goods queryById(Integer id);

    List<Goods> queryAllByLimit(int offset, int limit);
    
    List<Goods> findAll();
    Goods insert(Goods goods);

    Goods update(Goods goods);

    boolean deleteById(Integer id);



    List<Goods> selectGoodsDataByPage(Integer currentPage, Integer pageSize, GoodsResultDTO goodsResultDTO);

    Goods selectGoodsDataById(Integer id);

    void updateStatus(Integer newStatus, Integer goodsId);
    List<Goods> findGoodsByPage();

    Goods queryByGoodsid(Integer goodsid);
}